package done;

public class Information {
	private double data;
	public Information(double data, int time) {
		super();
		this.data = data;
		this.timeString = transformTime(time);
	}
	public double getData() {
		return data;
	}
	public void setData(double data) {
		this.data = data;
	}
	public String getTime() {
		return timeString;
	}
	public void setTime(String time) {
		this.timeString = time;
	}
	private String timeString;
	
	private String transformTime(int time) {
		int hours = 0, minutes = 0, seconds = 0;
		String timeStr = new String();
		hours = (time / 3600);
		minutes = (time - hours * 3600) / 60;
		seconds = time - hours * 3600 - minutes * 60;
		timeStr = hours + ":" + minutes + ":" + seconds;
		return timeStr;
	}
}
